package com.mugu.user.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mugu.common.annotation.Excel;
import com.mugu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户名对象 tb_user
 * 
 * @author Finley
 * @date 2021-04-03
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 系统id */
    private Integer id;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 微信小程序唯一Id */
    private String openid;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 0:女, 1:男 */
    @Excel(name = "性别 0:女, 1:男")
    private Integer gender;

    /** 生日 */
    @Excel(name = "生日")
    private String birthday;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String cid;

    /** 户籍省 */
    @Excel(name = "户籍省")
    private String province;

    /** 户籍市 */
    @Excel(name = "户籍市")
    private String city;

    /** 户籍区 */
    @Excel(name = "户籍区")
    private String region;

    /** 户籍街道 */
    @Excel(name = "户籍街道")
    private String street;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 密码 */
    private String password;

    /** 擅长 */
    @Excel(name = "擅长")
    private String goodAt;

    /** 身份证正面照 */
    private String cardFront;

    /** 身份证反面照 */
    private String cardBack;

    /** 头像 */
    private String avatar;

    /** vip级别 */
    @Excel(name = "vip级别")
    private Integer vipLevel;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private BigDecimal amount;

    /** 状态标志位 0:未实名 1:已实名 */
    @Excel(name = "状态标志位 0:未实名 1:已实名")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDatetime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setBirthday(String birthday) 
    {
        this.birthday = birthday;
    }

    public String getBirthday() 
    {
        return birthday;
    }
    public void setCid(String cid) 
    {
        this.cid = cid;
    }

    public String getCid() 
    {
        return cid;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }
    public void setStreet(String street) 
    {
        this.street = street;
    }

    public String getStreet() 
    {
        return street;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setGoodAt(String goodAt) 
    {
        this.goodAt = goodAt;
    }

    public String getGoodAt() 
    {
        return goodAt;
    }
    public void setCardFront(String cardFront) 
    {
        this.cardFront = cardFront;
    }

    public String getCardFront() 
    {
        return cardFront;
    }
    public void setCardBack(String cardBack) 
    {
        this.cardBack = cardBack;
    }

    public String getCardBack() 
    {
        return cardBack;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setVipLevel(Integer vipLevel) 
    {
        this.vipLevel = vipLevel;
    }

    public Integer getVipLevel() 
    {
        return vipLevel;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCreateDatetime(Date createDatetime) 
    {
        this.createDatetime = createDatetime;
    }

    public Date getCreateDatetime() 
    {
        return createDatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("openid", getOpenid())
            .append("name", getName())
            .append("gender", getGender())
            .append("birthday", getBirthday())
            .append("cid", getCid())
            .append("province", getProvince())
            .append("city", getCity())
            .append("region", getRegion())
            .append("street", getStreet())
            .append("address", getAddress())
            .append("password", getPassword())
            .append("goodAt", getGoodAt())
            .append("cardFront", getCardFront())
            .append("cardBack", getCardBack())
            .append("avatar", getAvatar())
            .append("vipLevel", getVipLevel())
            .append("amount", getAmount())
            .append("status", getStatus())
            .append("createDatetime", getCreateDatetime())
            .append("remark", getRemark())
            .toString();
    }
}
